<?php
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}


$id =  $_G['gp_id'];
$ut =  $_G['gp_ut'];
if (empty($id) || empty($ut)) {
	showmessage(lang('know/template', 'confirm_fail_message'));
}
else {
	$data = array('email_confirmed' => 1, 'update_time' => time() );
	$condition = array('id' => $id, 'update_time' => $ut);
	$count = DB::update('article_subscribe', $data, $condition);
	if($count > 0) {
		showmessage(lang('know/template', 'confirm_success_message'), '', array(), array('alert' => 'right') );
	}
	else {
		showmessage(lang('know/template', 'confirm_fail_message'));
	}
}

?>